package com.beiding.workordersystem.resource.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.beiding.workordersystem.resource.entity.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface ResourceService {
    IPage<Resource> page(IPage page, Resource resource, Boolean my, Boolean audit);

    void save(Resource resource);

    void remove(String[] ids);

    void take(String[] ids);

    void delete(String[] ids);

    void passSave(String[] ids);

    void refuseSave(String[] ids);

    void passTake(String[] ids);

    void refuseTake(String[] ids);

    void passRemove(String[] ids);

    void refuseRemove(String[] ids);

    void giveBack(String[] ids);

    void refuseGiveBack(String[] ids);

    void passGiveBack(String[] ids);

    Resource details(String id);

    List<Resource> loadChildren(String mainId);
}
